package org.nightrunner.d3.service;

import java.io.Serializable;
import java.util.List;

import org.nightrunner.d3.entity.Prefix;
import org.nightrunner.d3.model.IPaginationInfo;
import org.nightrunner.d3.model.PaginationModel;

/**
 * Prefix Service interface
 * 
 * @author NightRunner
 * @date 2012-7-26
 * @version 1.0
 */
public interface IPrefixService {

	PaginationModel<List<Prefix>> getPrefix();

	PaginationModel<List<Prefix>> getPrefixs(IPaginationInfo pagination);

	void deletePrefix(Prefix prefix);

	Prefix getPrefix(String prefixId);

	Serializable addPrefix(Prefix prefix);

	List<Prefix> getAllPrefix();

	void updatePrefix(Prefix prefix);
}